﻿using System;
using System.Security.Cryptography;
using System.Text;

namespace TimerTask.Common.Utils
{
    public class Md5Util
    {
        public static string GetMd5(string src, string salt)
        {
            using (var md5 = MD5.Create())
            {
                var result = md5.ComputeHash(Encoding.UTF8.GetBytes(src + salt));
                var strResult = BitConverter.ToString(result);
                return strResult.Replace("-", "");
            }
        }
    }
}
